package com.doupi.partner.service.dto;

import com.doupi.partner.dal.model.Administrator;
import com.doupi.partner.dal.model.AdministratorHasRole;
import com.doupi.partner.dal.model.AdministratorRole;
import com.doupi.partner.model.BusinessRelation;
import com.doupi.partner.model.PartnerRelation;

import java.util.List;

public class AdministratorDto extends Administrator {
    private static final long serialVersionUID = -4257671896388864393L;

    private List<AdministratorHasRole> administratorHasRoles;

    private List<AdministratorRole> administratorRoles;

    private PartnerRelation partnerRelation;

    private BusinessRelation businessRelation;
	
    public boolean isPartner() {
        return null != partnerRelation;
    }

    public boolean isBusiness() {
        return null != businessRelation;
    }

    public List<AdministratorHasRole> getAdministratorHasRoles() {
        return administratorHasRoles;
    }

    public void setAdministratorHasRoles(List<AdministratorHasRole> administratorHasRoles) {
        this.administratorHasRoles = administratorHasRoles;
    }

    public List<AdministratorRole> getAdministratorRoles() {
        return administratorRoles;
    }

    public void setAdministratorRoles(List<AdministratorRole> administratorRoles) {
        this.administratorRoles = administratorRoles;
    }

    public PartnerRelation getPartnerRelation() {
        return partnerRelation;
    }

    public void setPartnerRelation(PartnerRelation partnerRelation) {
        this.partnerRelation = partnerRelation;
    }

    public BusinessRelation getBusinessRelation() {
        return businessRelation;
    }

    public void setBusinessRelation(BusinessRelation businessRelation) {
        this.businessRelation = businessRelation;
    }

}
